package com.wing.productself.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wing.productself.model.entity.ProductCategorySelf;
import com.wing.productself.model.response.ProductCategorySelfVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 产品分类-Dao
 *
 * @author
 */
@Mapper
public interface ProductCategorySelfDao extends BaseMapper<ProductCategorySelf> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<ProductCategorySelfVO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<ProductCategorySelfVO> list4app(@Param("page") Page<ProductCategorySelfVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    ProductCategorySelfVO get4appById(Long id);
}
